package org.springframework.web.tag;

import org.springframework.web.common.RequestAttrs;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyTagSupport;

/**
 * @author float.lu
 */
public class ConfigurationTag extends BodyTagSupport {

    private long timeout;

    @Override
    public int doStartTag() throws JspException {
        pageContext.getRequest().setAttribute(RequestAttrs.CO_TIMEOUT, timeout);
        return super.doStartTag();
    }

    public long getTimeout() {
        return timeout;
    }

    public void setTimeout(long timeout) {
        this.timeout = timeout;
    }
}
